import request from '@/utils/request'
//人员管理
export function renyuan_login(payload = {}) {
    return request.get('/people', { params: payload })
}
//新增人员
export function xinzeng_login(payload = {}) {
    return request.post('/people', payload)
}
//删除人员
export function shanchu_login(payload = {}) {
    return request.delete('/people/' + payload, payload)
}
//编辑人员
export function bianji_login(payload:any = {}) {
    return request.patch('/people/' + payload.id, payload)
}
//转正管理
export function zhuanzheng_login(payload = {}) {
    return request.get('/zhuanzhen', { params: payload })
}
//新增转正
export function xinzhuanzheng_login(payload = {}) {
    return request.post('/zhuanzhen', payload)
}
//修改转正状态
export function patchzhuangtai_login(payload:any = {}) {
    return request.patch('/zhuanzhen/'+ payload.id, payload)
}
//删除转正人员
export function delzhuanzheng_login(payload = {}) {
    return request.delete('/zhuanzhen/' + payload, payload)
}
//离职管理
export function dailizhi_login(payload = {}) {
    return request.get('/lizhi', { params: payload })
}
//删除离职人员
export function dellizhi_login(payload = {}) {
    return request.delete('/lizhi/' + payload, payload)
}
//改变离职状态
export function queren_login(payload:any = {}) {
    return request.patch('/lizhi/'+ payload.id, payload)
}
//新增待离职人员
export function banli_login(payload = {}) {
    return request.post('/lizhi', payload)
}
//审批管理
export function shenpi_login(payload = {}) {
    return request.get('/shenpi', { params: payload })
}
//修改审批状态
export function shenzhuang_login(payload:any = {}) {
    return request.patch('/shenpi/'+ payload.id, payload)
}

